<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理菜单</title>
<link rel="stylesheet" href="__PUBLIC__default/admin/css/leftmenu.css" />
</head>
<body>
<table width="100%" height="280" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB">
  <tr>
    <td width="182" valign="top">
      <div id="container">
      <?php foreach($leftMenus as $menuItem) { ?>
      <h1 class="type"><a href="javascript:void(0)"><?php echo $menuItem['title']; ?></a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="__PUBLIC__default/admin/images/menu_topline.gif" width="182" height="5" /></td>
          </tr>
        </table>
        <ul class="MM">
        <?php foreach($menuItem['subnav'] as $action => $subnavTitle) { ?>
          <li><a href="__URL__<?php echo $action; ?>" target="main"><?php echo $subnavTitle; ?></a></li>
        <?php } ?>
        </ul>
      </div>
      <?php } ?>
      </div>
    </td>
  </tr>
</table>
<script src="__PUBLIC__default/admin/js/prototype.lite.js" type="text/javascript"></script>
<script src="__PUBLIC__default/admin/js/moo.fx.js" type="text/javascript"></script>
<script src="__PUBLIC__default/admin/js/moo.fx.pack.js" type="text/javascript"></script>
<script type="text/javascript">
    var contents    = document.getElementsByClassName('content');
    var toggles     = document.getElementsByClassName('type');
    var myAccordion = new fx.Accordion(
        toggles, contents, {opacity: true, duration: 400}
    );
    myAccordion.showThisHideOpen(contents[0]);
</script>
</body>
</html>
